#!/bin/bash
echo "检查节点服务模块..."
echo "[sftp_manage]"
pid_count_1=`ps -ef | grep -v grep | grep sftp_manage.py | awk '{print $2}' | wc -l`
if [ $pid_count_1 -gt 0 ]; then
    echo "sftp_manage进程已经启动，进程信息如下:"
    ps -ef | grep -v grep | grep sftp_manage.py
else
    echo "sftp_manage进程当前没有启动"
fi
echo "[encrypt_manage]"
pid_count_2=`ps -ef | grep -v grep | grep encrypt_manage.py | awk '{print $2}' | wc -l`
if [ $pid_count_2 -gt 0 ]; then
    echo "encrypt_manage进程已经启动，进程信息如下:"
    ps -ef | grep -v grep | grep encrypt_manage.py
else
    echo "encrypt_manage进程当前没有启动"
fi
